package com.dycong.common.threadUtil.quartzScheduler;

import org.quartz.Job;
import org.quartz.JobExecutionContext;

import java.util.Date;

/**
 * Created by dycong on 2016/12/14.
 */
public class MyJob implements Job {
    public MyJob(){};
    @Override
    public void execute(JobExecutionContext context) {
        System.out.println("===============  In SimpleQuartzJob - executing its JOB at "
                + new Date() + " by " + context.getTrigger().getKey().getName()+"---"+Thread.currentThread().getName());
    }
}
